<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<%@include file="/view/common/common.jsp"%>
	<script type="text/javascript">
		function searchData() {
			$('#tab').datagrid('load',serializeForm($('#mySearchForm')));
		}
		
		function formatData(val, row) {
			if (val == '0') {
				return '转入';
			} else {
				return '转出';
			}
		}
		
		function loadSMSCalendarYMD() {
			WdatePicker({dateFmt:"yyyy-MM-dd"});
		}

	</script>

</head>
<body>

<div class="easyui-panel"  fit="true">
	<div id="jqueryToolbar" style="padding:auto;height:auto">
		<div style="margin-top:5px; padding-bottom:8px; border-bottom:1px solid #ccc;">
			<form id="mySearchForm" action="" method="Post">
				手机:<input type="text" id="phone" name="phone" class="easyui-textbox"  style="width: 90px; height: 25px;"/>
				时间：<input type="text" id="startTime" name="startTime" class="easyui-datebox"  style="width:110px;height: 25px;">
					  <input type="text" id="endTime" name="endTime" class="easyui-datebox" style="width:110px;height: 25px;"/>
				<!-- <input class="input-medium" id="startTime" name="startTime" type="text" onclick="loadSMSCalendarYMD()" style="width: 80px;"/>-
			    <input class="input-medium" id="endTime" name="endTime" type="text" onclick="loadSMSCalendarYMD()" style="width: 80px;"/> -->
				<a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="searchData()">查询</a>
			</form>
		</div>
	</div>


	<table id="tab" class="easyui-datagrid"  fit="true" style="height:355px;width:auto" url="${ctx}/transfer/getTransferRecord.do"
		   rownumbers="true" pagination="true" pagePosition="top" singleSelect="true">
		<thead>
		<tr>
			<th field="nick_name"  width="80" align="center">昵称</th>
			<th field="phone" width="130" align="center">手机号</th>
			<th field="uid" width="80" align="center">uid</th>
			<th field="type" width="85" align="center" data-options="formatter:formatData" >类型</th>
			<th field="ifip" width="130" align="center">ifip</th>
			<th field="ifiv" width="130" align="center">ifiv</th>
			<th field="create_time"  width="135" align="center">创建时间</th>
		</tr>
		</thead>
	</table>

</div>
</body>
</html>
